package com.hdi.extendsoverride;

import java.util.ArrayList;

public class A {

    ArrayList b;
    {
        ArrayList list = new ArrayList<String>();
        list.add("小胖");
        list.add("吃饭");
        b  = list;
    }

    public static void print1(){
        System.out.println("==print1==");
    }

    protected void print2(){
        System.out.println("==print2==");
    }

    Object getObject(){
        return b;
    }
}
